import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Comment } from '../../entities/comment.entity';
import { Article } from '../../entities/article.entity';
import { SensitiveWord } from '../../entities/sensitive-word.entity';
import { CommentService } from './comment.service';
import { CommentController } from './comment.controller';
import { UserModule } from '../user/user.module';
import { CommentAdminController } from './comment-admin.controller';
import { SensitiveModule } from '../sensitive/sensitive.module';

@Module({
  imports: [TypeOrmModule.forFeature([Comment, Article, SensitiveWord]), UserModule, SensitiveModule],
  controllers: [CommentController, CommentAdminController],
  providers: [CommentService],
  exports: [CommentService],
})
export class CommentModule {}